package com.demo.miya.controller.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

// 一个项目定义多个Feign接口，需要定义不同ContextId，否则其他项目引入该Jar会出错
@FeignClient(contextId = "miyaClient", name = "service-miya")
@RestController
public interface MiyaClient {

    @GetMapping("/hi")
    String hi();
}
